package com.farewell.hotel.service.impl;

import com.farewell.hotel.mapper.RoomTypeMapper;
import com.farewell.hotel.pojo.RoomType;
import com.farewell.hotel.service.RoomTypeService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Farewell
 * @date 2021/4/26
 */
@Service("RoomTypeService")
public class RoomTypeServiceImpl implements RoomTypeService {
    @Autowired
    private RoomTypeMapper roomTypeMapper;

    @Override
    public List<RoomType> getAllRoomType() {
        return roomTypeMapper.getAllRoomType();
    }
}
